Topic:
Sticks
Time limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)
Total submission (s): 364 Accepted Submission (s): 116
Problem Descriptiongeorge took sticks of the same length and cut them randomly until all parts became at most units lon G. Now he wants to return sticks
Poj 1011 -- Sticks (search), poj1011 -- sticks
Question Link
DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. now he wants to return sticks to the original state, but he forgot how many sticks he had origin
Luogu P3799 demon dream sticks and p3799 sticksBackground
In the above question, the demon dream chopped a wooden stick, and now she wants to combine the wooden sticks.Description
There are n wooden sticks. Now, select 4 from them and want to form a triangle. How can I select them?Input/Output Format
Input Format:
The first line is an integer n.
N integers in the second line, a1, a2 ,...... An (0
Output
Link: click here~~Main topic:Give the length and weight of the n stick. Find the shortest time to make sticks as required. It takes 1 minutes to build the first stick, and if it is to be made, the weight and length of the stick will not need to be established until it is longer than the stick, and if not, it will need to be established again. The minimum time to find out how much."Problem-solving ideas"The length and weight of the
Interval DP, cut DP[I][J] is not cost-independent (no validity)DP[I][J] represents the cost of interval i,j, so as long as the enumeration of the cutting method is done, the interval is divided into smaller intervals. O (n^3)Looked at the quadrilateral inequalities, proved too long.#include //variables don't take ignore left or something like that.using namespacestd;Const intMAXN =Wuyi;intCUT[MAXN];intDP[MAXN][MAXN];Const intINF =0x3fffffff;intMain () {//freopen ("In.txt", "R", stdin); intL,n
Sticks
Time Limit: 2000/1000 MS (Java/others) memory limit: 65536/32768 K (Java/Others)Total submission (s): 3582 accepted submission (s): 903 Problem descriptiongeorge
Took sticks of the same length and cut them randomly until all parts
Became at most 50 units long. Now he wants to return sticks to
Original state, but he forgot how many
Problem DescriptionThere is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to is processed by a woodworking machine into one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times are associated with cleaning operations and changing tools and shapes in the machine. The setup times of the woodw
Wooden Sticks
Problem Description There is a pile of n wooden sticks. The length and weight of each stick is known in advance. The sticks is processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times is associated with cleaning operations and changing tools a
C-wooden Sticks
Time Limit:1000MS
Memory Limit:32768KB
64bit IO Format:%I64D %i64u Submit Status
Description There is a pile of n wooden sticks. The length and weight of each stick is known in advance. The sticks is processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The s
Wooden Sticks
Time limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)Total submission (s): 15700 Accepted Submission (s): 6451Problem Description There is a pile of n wooden sticks. The length and weight of each stick is known in advance. The sticks is processed by a woodworking machine in one by one fashion. It needs some time, called
There is a pile of n wooden sticks. The length and weight of each stick is known in advance. The sticks is processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times is associated with cleaning operations and changing tools and shapes. The setup times of the woodworking machine is given as follows:(a) The se
Hdoj Title Address: Portal
Wooden SticksTime limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)Total submission (s): 17453 Accepted Submission (s): 7121 Problem Description There is a pile of n wooden sticks. The length and weight of each stick is known in advance. The sticks is processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the m
Topic Link: Click to open the link
Pick-up Sticks Time limit:4000/2000 MS (java/others) Memory limit:65536/32768 K (java/others)Total submission (s): 2680 Accepted Submission (s): 978 Problem Description Stan has n sticks of various length. He throws them one at a time to the floor in a random. After finishing throwing, Stan tries to find the top sticks, that's
Pick-up sticks
Problem descriptionstan has n sticks of various length. he throws them one at a time on the floor in a random way. after finishing throwing, Stan tries to find the top sticks, that is these sticks such that there is no stick on top of them. stan has noticed that the last thrown stick is always on top but
SticksDescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most units long. Now he wants to return sticks to the original state, but he forgot what many sticks he had originally and how long they wer E originally. Him and design a program which computes the smallest possible original length of those
Pick-up SticksTime limit:4000/2000 MS (java/others) Memory limit:65536/32768 K (java/others)Total submission (s): 2216 Accepted Submission (s): 815Problem Descriptionstan has n sticks of various length. He throws them one at a time to the floor in a random. After finishing throwing, Stan tries to find the top sticks, that's these sticks such that there was no s
Pick-up sticks
Time Limit: 4000/2000 MS (Java/others) memory limit: 65536/32768 K (Java/Others)Total submission (s): 1682 accepted submission (s): 642Problem descriptionstan has n sticks of various length. he throws them one at a time on the floor in a random way. after finishing throwing, Stan tries to find the top sticks, that is these
Pick-up Sticks
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 11537
Accepted: 4337
DescriptionStan has n sticks of various length. He throws them one at a time to the floor in a random. After finishing throwing, Stan tries to find the top sticks, that's these
Pick-up Sticks
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 11335
Accepted: 4250
DescriptionStan has n sticks of various length. He throws them one at a time to the floor in a random. After finishing throwing, Stan tries to find the top sticks, that's these
The main effect of the topic
A stick with a long l, with n "Tangent points" on it, and the position of each point is c[i]
We have to cut every point in a certain order, and then it turns into a n+1 segment.
Each time you cut, there is a cost, such as 10, "tangent" to 2, then the cut will become two paragraphs 2, 8, then the cost of 2+8=10
If you have more than one tangent, you will get different costs in different order.
How much is the minimum cost?
Ideas
Note To add a c[n] = l
F (I, j)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.